//
//  MKUICollectionViewWaterFlowLayoutTitleSupplementarySectionModel.m
//  MKUI
//
//  Created by 苏尚进 on 2023/3/1.
//  Copyright © 2023 moon. All rights reserved.
//

#import "MKUICollectionViewWaterFlowLayoutTitleSupplementarySectionModel.h"

@implementation MKUICollectionViewWaterFlowLayoutTitleSupplementarySectionModel
- (void)setLastLineItemCellClass:(Class)lastLineItemCellClass{
    if(_lastLineItemCellClass != lastLineItemCellClass){
        if(_lastLineItemCellClass){
            [self removeSupplementaryElementViewClassForKind:MKUICollectionElementKindWaterFlowSectionLastLineItem];
        }
        _lastLineItemCellClass = lastLineItemCellClass;
        if(_lastLineItemCellClass){
            [self setSupplementaryElementViewClass:_lastLineItemCellClass forKind:MKUICollectionElementKindWaterFlowSectionLastLineItem];
        }
    }
}
@end
